Airwallex\Controllers\OrderController C

Total Complexity 114
Dependencies 9
Dependents 3
Total lines 640
Lines of code 400
Logical lines of code 242
Comment lines 145
Methods 18
Properties 0

Methods 18

Method Rating Maintainability Complexity Lines of code
getAvailableShippingOptions()
B
35 22 83
getDisplayItems()
B
37 15 72
normalizeState()
A
49 17 28
addToCart()
A
50 9 26
getNormalizedStateFromExpressCheckoutStates()
A
56 9 17
calculateShipping()
A
45 7 41
validateState()
A
53 8 22
getNormalizedState()
S
55 7 19
createOrderFromCart()
S
56 4 17
getNormalizedPostcode()
S
65 3 9
updateWCShippingMethod()
S
65 3 9
updateShippingMethod()
S
60 2 13
getCartDetails()
S
63 2 11
isNormalizedState()
S
74 2 4
getShippingOptions()
S
59 1 15
sanitizeString()
S
79 1 3
getCartBasics()
S
69 1 7
getFormattedShippingLabel()
S
74 1 4